package com.baijiaoxi.common.model;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GlobalGson {
    public static Gson gson = new Gson();
    public static Gson serializeNullsGson = new GsonBuilder().serializeNulls().create();//null也会被序列化

    public static Gson numberAsStringGson = new GsonBuilder()
            .registerTypeAdapter(String.class, new GsonNumberAsStringAdapter())
            .create();
}
